uniform mat4 u_mvp;
uniform mat4 u_mv;
uniform vec3 u_lightPos;
uniform vec4 u_color;
attribute vec4 a_pos;
attribute vec4 a_norm;
varying vec3 v_lightPos;
varying vec3 v_pos;
varying vec4 v_color;
varying vec3 v_norm;

void main() {
	v_lightPos = u_lightPos;
	
	v_pos = vec3(u_mv * a_pos);
	v_color = u_color;
	v_norm = vec3(u_mv * a_norm);
	
	gl_Position = u_mvp * a_pos;
}
